import request from '@/utils/request'

export default {
  // 列表
  query(data) {
    return request({
      url: `/v1/purchase/strike/list`,
      method: 'post',
      data
    })
  },
  // 批量审核
  batchAudit(data) {
    return request({
      url: `/v1/purchase/strike/batch-audit`,
      method: 'post',
      data
    })
  },
  // 批量冲账
  batchStrike(data) {
    return request({
      url: `/v1/purchase/strike/batch-strike`,
      method: 'post',
      data
    })
  },
  // 申请冲账详情
  strike(data) {
    return request({
      url: `/v1/purchase/purchase/strike`,
      method: 'post',
      data
    })
  },
  // 提交冲账
  addStrike(data) {
    return request({
      url: `/v1/purchase/purchase/add-strike`,
      method: 'post',
      data
    })
  },
  // 详情
  detail(params) {
    return request({
      url: `/v1/purchase/strike/detail`,
      method: 'get',
      params
    })
  },
}
